var app = getApp(),
  common = require("../../common/common.js"),
  WxParse = require('../../../../wxParse/wxParse.js');

Page({
  data: {

  },
  onLoad: function(options) {
    let _t = this
    app.util.request({
      url: 'entry/wxapp/collectList',
      data: {},
      success: function(a) {
        console.log()
        let list = a.data.data



        for (let i = 0; i < list.length; i++) {
          WxParse.wxParse('subject' + i, 'html', list[i].subject, _t); //题目
          if (i === list.length - 1) {
            WxParse.wxParseTemArray("startTest", 'subject', list.length, _t) //题目
          }          
        }


        _t.setData({
          list: list
        })
      }
    })
  },
  onReady: function() {

  },
  onShow: function() {

  },
  onHide: function() {

  },
  onUnload: function() {

  },
  onPullDownRefresh: function() {

  },
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})